.class Lrexsee/core/progress/RexseeProgressTextDialog$1;
.super Ljava/lang/Object;
.source "RexseeProgressTextDialog.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/progress/RexseeProgressTextDialog;->show(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

.field private final synthetic val$cancelCallback:Ljava/lang/String;

.field private final synthetic val$message:Ljava/lang/String;

.field private final synthetic val$title:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/core/progress/RexseeProgressTextDialog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    iput-object p2, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->val$title:Ljava/lang/String;

    iput-object p3, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->val$cancelCallback:Ljava/lang/String;

    iput-object p4, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->val$message:Ljava/lang/String;

    .line 47
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lrexsee/core/progress/RexseeProgressTextDialog$1;)Lrexsee/core/progress/RexseeProgressTextDialog;
    .locals 1

    .prologue
    .line 47
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    return-object v0
.end method


# virtual methods
.method public run()V
    .locals 14

    .prologue
    const/4 v13, 0x3

    const/4 v12, 0x1

    const/16 v9, 0xf

    const/4 v11, -0x1

    const/4 v10, 0x0

    .line 50
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    if-nez v6, :cond_0

    .line 51
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    .line 52
    new-instance v7, Landroid/app/AlertDialog$Builder;

    iget-object v8, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;
    invoke-static {v8}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$1(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/content/Context;

    move-result-object v8

    invoke-direct {v7, v8}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v7}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v7

    .line 51
    invoke-static {v6, v7}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$2(Lrexsee/core/progress/RexseeProgressTextDialog;Landroid/app/AlertDialog;)V

    .line 53
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    invoke-virtual {v6, v10}, Landroid/app/AlertDialog;->setCancelable(Z)V

    .line 54
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    new-instance v7, Lrexsee/core/progress/RexseeProgressTextDialog$1$1;

    invoke-direct {v7, p0}, Lrexsee/core/progress/RexseeProgressTextDialog$1$1;-><init>(Lrexsee/core/progress/RexseeProgressTextDialog$1;)V

    invoke-virtual {v6, v7}, Landroid/app/AlertDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 62
    new-instance v4, Landroid/widget/LinearLayout;

    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$1(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/content/Context;

    move-result-object v6

    invoke-direct {v4, v6}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 63
    .local v4, "progressLayout":Landroid/widget/LinearLayout;
    invoke-virtual {v4, v10}, Landroid/widget/LinearLayout;->setId(I)V

    .line 64
    invoke-virtual {v4, v12}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 65
    const/16 v6, 0x28

    invoke-virtual {v4, v10, v10, v10, v6}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    .line 66
    new-instance v5, Landroid/widget/ScrollView;

    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$1(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/content/Context;

    move-result-object v6

    invoke-direct {v5, v6}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;)V

    .line 67
    .local v5, "scroller":Landroid/widget/ScrollView;
    invoke-virtual {v5, v12}, Landroid/widget/ScrollView;->setId(I)V

    .line 68
    invoke-virtual {v5, v10}, Landroid/widget/ScrollView;->setVerticalFadingEdgeEnabled(Z)V

    .line 69
    invoke-virtual {v5, v10}, Landroid/widget/ScrollView;->setHorizontalFadingEdgeEnabled(Z)V

    .line 70
    invoke-virtual {v5, v4}, Landroid/widget/ScrollView;->addView(Landroid/view/View;)V

    .line 71
    new-instance v0, Landroid/widget/LinearLayout;

    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$1(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/content/Context;

    move-result-object v6

    invoke-direct {v0, v6}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 72
    .local v0, "layout":Landroid/widget/LinearLayout;
    invoke-virtual {v0, v9, v9, v9, v9}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    .line 73
    const/16 v6, 0x320

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setMinimumHeight(I)V

    .line 74
    new-instance v6, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v6, v11, v11}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v5, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 75
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    invoke-virtual {v6, v0}, Landroid/app/AlertDialog;->setView(Landroid/view/View;)V

    .line 77
    .end local v0    # "layout":Landroid/widget/LinearLayout;
    .end local v4    # "progressLayout":Landroid/widget/LinearLayout;
    .end local v5    # "scroller":Landroid/widget/ScrollView;
    :cond_0
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    iget-object v7, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v7}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$3(Lrexsee/core/progress/RexseeProgressTextDialog;)Lrexsee/core/browser/Browser;

    move-result-object v7

    iget-object v7, v7, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v7, v7, Lrexsee/core/application/RexseeApplication;->icon:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v6, v7}, Landroid/app/AlertDialog;->setIcon(Landroid/graphics/drawable/Drawable;)V

    .line 78
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    iget-object v7, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->val$title:Ljava/lang/String;

    invoke-static {v7}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/app/AlertDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 79
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->val$cancelCallback:Ljava/lang/String;

    const-string v7, ""

    invoke-virtual {v6, v7}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v6

    if-eqz v6, :cond_1

    .line 80
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    iget-object v7, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;
    invoke-static {v7}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$1(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/content/Context;

    move-result-object v7

    invoke-virtual {v7}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    const/high16 v8, 0x1040000

    invoke-virtual {v7, v8}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v7

    new-instance v8, Lrexsee/core/progress/RexseeProgressTextDialog$1$2;

    iget-object v9, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->val$cancelCallback:Ljava/lang/String;

    invoke-direct {v8, p0, v9}, Lrexsee/core/progress/RexseeProgressTextDialog$1$2;-><init>(Lrexsee/core/progress/RexseeProgressTextDialog$1;Ljava/lang/String;)V

    invoke-virtual {v6, v11, v7, v8}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 87
    :cond_1
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    invoke-virtual {v6}, Landroid/app/AlertDialog;->show()V

    .line 88
    new-instance v1, Landroid/widget/TextView;

    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$1(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/content/Context;

    move-result-object v6

    invoke-direct {v1, v6}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 89
    .local v1, "newProgress":Landroid/widget/TextView;
    invoke-virtual {v1, v10, v13, v10, v13}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 90
    const/high16 v6, 0x41800000    # 16.0f

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setTextSize(F)V

    .line 91
    invoke-virtual {v1, v11}, Landroid/widget/TextView;->setTextColor(I)V

    .line 92
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->val$message:Ljava/lang/String;

    invoke-static {v6}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v6

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 93
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    invoke-virtual {v6, v10}, Landroid/app/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 94
    .local v2, "pLayout":Landroid/widget/LinearLayout;
    new-instance v6, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v7, -0x2

    invoke-direct {v6, v11, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v1, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 95
    iget-object v6, p0, Lrexsee/core/progress/RexseeProgressTextDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressTextDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;
    invoke-static {v6}, Lrexsee/core/progress/RexseeProgressTextDialog;->access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;

    move-result-object v6

    invoke-virtual {v6, v12}, Landroid/app/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ScrollView;

    .line 96
    .local v3, "pScroller":Landroid/widget/ScrollView;
    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getHeight()I

    move-result v6

    invoke-virtual {v3, v10, v6}, Landroid/widget/ScrollView;->scrollTo(II)V

    .line 97
    return-void
.end method
